{include file=top.html}
<script type="text/javascript">
$(function(){
	$("img.lazyload").lazyLoad();
	
	/* 首页轮播 */
	if($('#slides').children('div').length>1){
		$('#slides').slidesjs({
			width: 320,
			height: 120,
			navigation: false,
			play: {
				auto: true
			}
		});
	}
	
	// 屏幕分辨率大于640的情况
	width = $(window).width();
	if(width<640) {
		$('.J_Floor img').attr('width', width/2-0.5);
	}
	
})
function submitForm()
{
	window.location.href=REAL_SITE_URL+"/index.php?app=search&keyword="+$('#keyword').val();
	return false;
}
</script>
<div id="main" class="w-full">
	<div id="page-home" class="w mb20"> 
		<!--common bar start-->
		<div class="bar-wrap">
			<div style="line-height:30px;" class="top-bar">
        	<a href="{$site_url}" class="pagelogo"><span></span></a>
            <div class="store-search">
                <form id="search-form">
                    <input name="keyword" id="keyword" type="text" class="kw border-0" placeholder="ECMall手机触屏版"/>
                    <p><a href="javascript:;" onclick="submitForm();" class="submit"></a></p>
                </form>
            </div>
            <a href="javascript:;" class="pagemore J_pagemore"><span></span></a>
        </div>
        <div class="eject-tab J_eject_tab w-full clearfix hidden"> <a href="index.php"> <span></span>
				<p>首页</p>
				</a> <a href="{url app=search}"> <span class="icon2"></span>
				<p>分类搜索</p>
				</a> <a href="{url app=cart}"> <span class="icon3"></span>
				<p>购物车</p>
				</a> <a href="{url app=member}"> <span class="icon4"></span>
				<p>用户中心</p>
				</a> </div>
		</div>
		<!--common bar end-->
		<div class="banner scroll-wrapper w">
			<div id="slides" class="scroller" >
				<!--{foreach from=$slides item=slide name=fe_slide}-->
				<div>
                	<a href='{$slide.ad_link_url}'><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$slide.ad_image_url}" /></a>
                </div>
                <!--{/foreach}-->
			</div>
			<ul class="new-banner-num new-tbl-type" id="idNum">
			</ul>
		</div>
		<div class="category">
			<ul class="clearfix">
				<li class="menu menu1"><a href="{url app=category}"></a><span>分类</span></li>
				<li class="menu menu2"><a href="{url app=cart}"></a><span>购物车</span></li>
				<li class="menu menu3"><a href="{url app=member}"></a><span>会员</span></li>
				<li class="menu menu4"><a href="{url app=my_coupon}"></a><span>优惠券</span></li>
				<li class="menu menu5"><a href="{url app=buyer_order}"></a><span>订单</span></li>
			</ul>
		</div>
		<div class="floor floor1 J_Floor">
			<div class="content clearfix">
				<div class="col-1"><a href="{$floor_1.ads.1.ad_link_url}"><img src="{$floor_1.ads.1.ad_image_url}" /></a></div>
				<div class="col-2">
					<div class="border-left"> <a href="{$floor_1.ads.2.ad_link_url}" class="border-bottom"><img src="{$floor_1.ads.2.ad_image_url}"  /></a> <a href="{$floor_1.ads.3.ad_link_url}"><img src="{$floor_1.ads.3.ad_image_url}" /></a> </div>
				</div>
			</div>
		</div>
		<div class="labels clearfix"> 
        	 <!--{foreach from=$floor_1.keywords item=kw1 }-->
        	<span><a href="{$kw1.link}" class="yahei" res="1">{$kw1.title|escape}</a></span> 
            <!--{/foreach}-->
        </div>
		<div class="floor floor2  J_Floor">
			<div class="title yahei">{$floor_2.model_name|escape}</div>
			<div class="content clearfix">
				<div class="col-1"><a href="{$floor_2.ads.1.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_2.ads.1.ad_image_url}" /></a></div>
				<div class="col-2">
					<div class="border-left"> <a href="{$floor_2.ads.2.ad_link_url}" class="border-bottom"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_2.ads.2.ad_image_url}"  /></a> <a href="{$floor_2.ads.2.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_2.ads.3.ad_image_url}" /></a> </div>
				</div>
			</div>
            <div class="labels clearfix"> 
        	 	<!--{foreach from=$floor_2.keywords item=kw2 }-->
        		<span><a href="{$kw2.link}" class="yahei" res="1">{$kw2.title|escape}</a></span> 
            	<!--{/foreach}-->
       	 	</div>
		</div>
		<div class="floor floor3  J_Floor">
			<div class="title yahei">{$floor_3.model_name|escape}</div>
			<div class="content clearfix">
				<div class="col-1">
					<div class="border-right"> <a href="{$floor_3.ads.1.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_3.ads.1.ad_image_url}" /></a><a href="{$floor_3.ads.2.ad_link_url}" class="border-top"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_3.ads.2.ad_image_url}" /></a> </div>
				</div>
				<div class="col-2"> <a href="{$floor_3.ads.3.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_3.ads.3.ad_image_url}" /></a> </div>
			</div>
		</div>
		<div class="labels clearfix"> 
        	 <!--{foreach from=$floor_3.keywords item=kw3 }-->
        	<span><a href="{$kw3.link}" class="yahei" res="1">{$kw3.title|escape}</a></span> 
            <!--{/foreach}-->
        </div>
		<div class="floor floor4  J_Floor">
			<div class="title yahei">{$floor_4.model_name|escape}</div>
			<div class="content clearfix">
				<div class="col-1"><a href="{$floor_4.ads.1.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_4.ads.1.ad_image_url}" /></a></div>
				<div class="col-2">
					<div class="border-left"> <a href="{$floor_4.ads.2.ad_link_url}" class="border-bottom"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_4.ads.2.ad_image_url}" /></a><a href="{$floor_4.ads.3.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_4.ads.3.ad_image_url}" /></a></div>
				</div>
			</div>
		</div>
		<div class="labels clearfix"> 
        	 <!--{foreach from=$floor_4.keywords item=kw4 }-->
        	<span><a href="{$kw4.link}" class="yahei" res="1">{$kw4.title|escape}</a></span> 
            <!--{/foreach}-->
        </div>
		<div class="floor floor5  J_Floor">
			<div class="title yahei">{$floor_5.model_name|escape}</div>
			<div class="content clearfix">
				<div class="col-1"><a href="{$floor_5.ads.1.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_5.ads.1.ad_image_url}" /></a></div>
				<div class="col-2">
					<div class="border-left"> <a href="{$floor_5.ads.2.ad_link_url}" class="border-bottom"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_5.ads.2.ad_image_url}" /></a><a href="{$floor_5.ads.3.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$floor_5.ads.3.ad_image_url}" /></a></div>
				</div>
			</div>
		</div>
        <div class="labels clearfix"> 
        	 <!--{foreach from=$floor_5.keywords item=kw5 }-->
        	<span><a href="{$kw5.link}" class="yahei" res="1">{$kw5.title|escape}</a></span> 
            <!--{/foreach}-->
        </div>
		<ul class="theme clearfix">
        	<!--{foreach from=$six_images item=six_image name=fe_six_image}-->
			<li><a style="{if $smarty.foreach.fe_six_image.iteration % 2 eq 0}margin-left:0.25rem;{else}margin-right:0.25rem;{/if}" href="{$six_image.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$six_image.ad_image_url}" /></a></li>
            <!--{/foreach}-->
		</ul>
		<div class="global-image-ads"><a href="{$banner.ad_link_url}"><img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$banner.ad_image_url}" /></a></div>
         <div class="rec_goods">
         	<div class="content">
                <!--{foreach from=$rec_goods item=rec name=fe_rec}-->
                <div class="list clearfix">
                    <!--{foreach from=$rec item=goods name=fe_goods}-->
                    <a class="it{$smarty.foreach.fe_goods.iteration}" href="{url app=goods&id=$goods.goods_id}">
                    	<p>
                            <img src="mobile/static/images/empty.gif"  class="lazyload" initial-url="{$goods.default_image}"/>	
                            <span>{$goods.goods_name|escape}</span>
                            <b>{$goods.price|price}</b>
                        </p>
                    </a>
                    <!--{/foreach}-->
                </div>
                <!--{/foreach}-->
            </div>
         </div>
	</div>
</div>
{include file=footer.html}